package day9zy.yuan;

/**
 * @author oldliu
 * @since 1.0
 */
//圆
public class Circle {
    private double radius;//半径
    public static double pi=3.1415926;

    public Circle(double r){
        this.radius=r;
    }
    public double calcZhouchang(){
        return 2*pi*radius;
    }
    public double calcArea(){
        return pi*radius*radius;
    }

//    public static void print(){
//        System.out.println("----圆周率是："+pi);
//        // System.out.println("半径是："+radius);
//    }
}
